import axios from 'axios';


// 悬疑的banner+玄幻的banner
export const getBannerTwo = (columnId:string) =>
    axios.get('/m1/banner/list', {
        params: { columnId: columnId }
    })


//本期主打
export const currentMain = () =>
    axios.post('/m1/recommend/listpageNew',
        {
            columnId: '8540',
            pageNo: '1',
            pageSize: '4'
        },
        {
            headers: {
                'content-type': 'application/x-www-form-urlencoded'
            }
        })


//重磅推荐
export const HeavyRecom = () =>
    axios.post('/m1/recommend/listpageNew',
        {
            columnId: '8541',
            pageNo: '1',
            pageSize: '3'
        },
        {
            headers: {
                'content-type': 'application/x-www-form-urlencoded'
            }
        })



//潜力新书
export const waitNewBook = () =>
    axios.post('/m1/recommend/listpageNew',
        {
            columnId: '8542',
            pageNo: '1',
            pageSize: '6'
        },
        {
            headers: {
                'content-type': 'application/x-www-form-urlencoded'
            }
        })


//后面所有组件均可复用
export const commonFunc = (columnId:string,pageSize:string) =>
    axios.post('/m1/recommend/listpageNew',
        {
            columnId: columnId,
            pageNo: '1',
            pageSize: pageSize
        },
        {
            headers: {
                'content-type': 'application/x-www-form-urlencoded'
            }
        })